<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<h1>登录界面</h1>
<form action="/login" method="post">
    <label>账号：<input type="text" name="username"></label><br/>
    <label>密码：<input type="text" name="password"></label><br/>
    <label>七天免登录<input type="checkbox" name="isAutoLogin"></label>
    <input type="submit" value="登录">
</form>
</body>
</html>
<script>
    const error = '<%=request.getParameter("error")%>';
    if (error === "yes") {
        alert("账号密码错误,请重新输入！")
    }
</script>
